Repository navigation
Stage 1: 2.5D Civic Seam renderer, 60Hz/audio rewrite, Pause shell & @4x atlases - #263
scrimshawlife-ctrl wants to merge 5 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c3f0dba86b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| guard let proj = root["projection"] as? [String: Any], | ||
| let mode = proj["mode"] as? String, !mode.isEmpty, | ||
| let rot = doubleValue(proj["groundRotationDegrees"]), rot == 45.0, | ||
| let yScale = doubleValue(proj["groundYScale"]), yScale == 0.5, | ||
| let space = proj["cameraFacingSpace"] as? String, !space.isEmpty, |
There was a problem hiding this comment.
Decode the field names shipped in visual-language-002
The bundled visual-language-002.json has no projection.mode or projection.cameraFacingSpace; it supplies facingModel instead. The readability keys also differ from those required below (playerSeparation, enemySeparation, and cameraFieldContour). Consequently, VisualLanguage.bundled() always throws invalidJSON, as reproduced by VisualLanguageTests. In normal gameplay, the suppressed error leaves AtlasCatalog.ensureIndexed() with no atlas names and prevents WorldRenderer.syncOutlines() from disabling runtime outline readback. Align the decoder with the shipped contract so the atlas and readability paths actually activate.
Useful? React with 👍 / 👎.
| for idx in built.enemies.indices { | ||
| if let vel = velocityById[built.enemies[idx].id] { | ||
| built.enemies[idx].direction = ClipFrameLibrary.cameraSpaceDirection(forFacing: vel) |
There was a problem hiding this comment.
Convert enemy occurrence facings to camera space as well
In normal 2.5D play, this loop converts only the enemies' base directions. ReactionClipTracker.ingest() still captures hurt, defeat, and held commit occurrences using the unprojected ActorClipProjection.direction(for:), and the subsequent reactions.apply(to:) installs those occurrences unchanged. Since WorldRenderer.playClip() prefers occurrence.direction over the base direction, an enemy moving along world (1, 1) faces north during locomotion but switches to east when hurt or defeated. Capture enemy occurrence facings in the same camera space when creating them, while preserving their event-time facing.
Useful? React with 👍 / 👎.
…ment, and atlas outline source images
… and fix @4x atlas logical sizing
Summary
Stage 1 full-game graphics, 60 Hz frame-time, audio engine, shell/control UX, and
@4x2.5D painterly-inked asset &.spriteatlasupgrade (pinned to Stage-1SS-specswith zero digest or golden-fixture churn onss-rules-014):App/WorldProjection.swift,App/GameScene.swift,App/WorldRenderer.swift,App/VFXRenderer.swift):worldScaleNode(yScale = 0.5) →worldRotateNode(zRotation = .pi / 4) with exact algebraic upright cancellation.resizeFillframing704world units horizontally, safe-area HUD,512-unit exterior street skirt, topological Y-depth sorting,0.35-alpha building occlusion fade over crisp masonry plinths, paired dark/light Camera field contours,#EF4B47keylined sweeping Vendor mine rings, and projected 4-notch Player / dashed enemy ground rings (retiring productionOutlineTexturesGPU readback).App/AudioEngine.swift,App/PitchedVoice.swift,Simulation.swift,GhostRun.swift,HUDRenderer.swift):AVAudioEnginewith 8 pre-attached(AVAudioPlayerNode, AVAudioUnitTimePitch)slots, pre-decodedAVAudioPCMBufferpool, per-cuegainDb, livemixupdates,.stop()on outgoing crossfaded music beds, Network Blackout ambience ducking, and retired deadVoiceslider.TickResult.digest, hoistedliveSolids+ prior-tick projectile compaction,O(1)precomputedGhostRuntrajectory, fractional Q8 sprite coordinates, cachedGameSession.snapshot,SKSpriteNodeHUD fills, bounded 60 Hz fixed-timestep accumulator, andPerformanceThresholds.frameTimeP95Ms = 17.0.App/TouchController.swift,App/PauseOverlayView.swift,App/GameContainerView.swift,HUDLayout.swift):-45°inverse rotation + simultaneous Stick + Dodge multi-touch.PauseOverlayView(PAUSED:RESUME / RESTART / SETTINGS / TITLE), restored3 HITS(F-013), and active-encounter Heat chevrons..spriteatlasBundles:@4x.png4-facing character/Camera frames, 14 2.5D architectural solids, 7256×256seamless ground tiles, 13 props, 2 motifs, 2 fog layers, 4 ALAC.m4aaudio masters, and 8 Xcode.spriteatlasbundles (AtlasCatalogpreloading +.linearmipmaps).Stacked on #235.